<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
	    <meta name="viewport" content="width=device-width, initial-scale=1">
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/lib/bootstrap/css/bootstrap.min.css"/>
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/base.css"/>
	    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/style.css"/>
		<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/jquery.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/js/shacha.js" ></script>
	</head>
	<body  style="background:transparent;">
			
				<div class="pad-20">
					<div class="panel panel-default linear">
					  	<div class="panel-heading title">会员列表</div>
					  	<div class="panel-body">
					  		<link rel="stylesheet" type="text/css" href="__PUBLIC__/lib/jedate/skin/jedate.css"/>
					  		<script type="text/javascript" src="__PUBLIC__/lib/jedate/jedate.min.js" ></script>
					  		<div class="pad-20">
					  			<form class="form-inline" action="/Admin/Index/home" method="post">
					  				
			                        <div class="form-group">
			                            
			                            <input id="user" name="user" class="form-control stu2" type="text" placeholder="输入会员姓名" value="">
			                          
			                        </div>
								  <button type="submit" class="btn btn-default">搜索</button>
								</form>
								<div class="pad-20"></div>
								<div class="table-responsive">
								  <table class="table">
								    <tr>
							    		<th>编号</th>
							    		<th>账号</th>
							    		<th>真实姓名</th>
										<th>等级</th>
										<th>投资金额</th>
							    		<th>推荐人</th>
							    		<th>注册时间</th>
										<!-- <th>激活时间</th> -->
										<th>平台收款银行卡号</th>
										<th>状态</th>
							    		<th>操作</th>
								    </tr>
								   
									 <tbody>
		
									<foreach name='list' item='v'>
									<tr>
									 <td>{$v.id}</td>
									 <td>{$v.account}</td>
								     <td>{$v.name}</td>
									 <td> <if condition="$v.level eq '0'" >免费会员	</if>
										 <if condition="$v.level eq '1'" >正式会员	</if>
										 <if condition="$v.level eq '2'" >普通代理	</if>
										 <if condition="$v.level eq '3'" >一级代理	</if>
										 <if condition="$v.level eq '4'" >二级代理	</if>
										 <if condition="$v.level eq '5'" >终级代理	</if></td>
									 <td>{$v.investmoney}</td>
								     <td>{$v.parid}</td>
								     <td>{$v.zctime}</td>
								     <!-- <td>{$v.jhtime}</td> -->
								     <td>{$v.pt_bank_num}</td>
									<td> <if condition="$v.status eq '1'" >已激活	</if>
										<if condition="$v.status eq '0'" ><a onclick="return is_jihuo(<?=$v['id']?>);" class="btn btn-primary btn-xs btn-success">未激活	</a></if></td>
									<td> <a href="/Admin/Index/userxg/user/{$v.id}" class="tablelink">修改</a>     <a onClick="javascript:if(!confirm('确定删除此会员？'))  return  false; " href="/Admin/Index/userdel/user/{$v.id}" >删除</a>    </td>
									</tr> 
								   </foreach>
								</tbody>
								    
								  </table>
								</div>
								<div class="f-right">
							
								  <ul class="pagination">
								  	{$page}
								    
								  </ul>
								</div>
								<script type="text/javascript">
		                            jeDate({
		                                dateCell:".stu1",
		                                format:"YYYY-MM-DD",
		                                isTime:false,
		                                minDate:"1900-1-1",
		                                maxDate:"2099-12-12"
		                            });
		                            jeDate({
		                                dateCell:".stu2",
		                                format:"YYYY-MM-DD",
		                                isTime:false,
		                                minDate:"1900-1-1",
		                                maxDate:"2099-12-12"
		                            });
		                        </script>
					  		</div>
					  	</div>
					</div>
				</div>
			
		</div>
	</body>
</html>
<link href="__PUBLIC__/css/sweetalert/sweetalert.css" rel="stylesheet">
 <script src="__PUBLIC__/js/sweetalert/sweetalert.min.js"></script>
 <script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/jquery.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/lib/bootstrap/js/bootstrap.min.js" ></script>
		<script type="text/javascript" src="__PUBLIC__/js/shacha.js" ></script>
		<script>
 function is_jihuo(id) {
 
		swal({
			title: "您确定要激活本帐号吗？",
			text: "审核后将无法恢复，请谨慎操作！",
			type: "warning",
			showCancelButton: true,
			confirmButtonColor: "#27c24c",
			confirmButtonText: "激活",
			closeOnConfirm: false
		},function() {
		//alert(id);
			$.ajax({
				type:'post',      
				url:'/Admin/Index/is_jihuo',
				data:{id:id},  
				cache:false,
				dataType:'json',  
				success:function(data){
				//alert(data.message);
					if (data.message == '操作成功！') {
						swal(data.message, "", "success");
						
					} else {
						swal(data.message, "", "error");
					}
					
				}
			});
			
		});
	}
</script>